/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.sale.entity;

import com.dian.common.validator.group.AddGroup;
import com.dian.common.validator.group.UpdateGroup;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import com.dian.common.entity.BaseEntity;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
/**
 * 销售发货单明细
 *
 * @author xiaolai
 * @email xiaolai@9dyun.cn
 * @date 2019-06-21 16:00:09
 */
@Data
@TableName("sale_deliver_line")
public class DeliverLineEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

    /**
	 * 销售发货单id
	 */
    private Long deliverId;



    /**
	 * 商品id;来源于base_goods.id
	 */
    private Long goodsId;



    /**
	 * 商品编码;来源于base_goods.goods_code
	 */
    @NotBlank(message="商品编码不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="商品编码长度不能超过40个字符")
    private String goodsCode;



    /**
	 * 商品名称;来源于base_goods.name
	 */
    @NotBlank(message="商品名称不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=200,  groups ={AddGroup.class, UpdateGroup.class}, message="商品名称长度不能超过200个字符")
    private String goodsName;



    /**
	 * 商品型号;来源于base_goods.goods_model
	 */
    @NotBlank(message="商品型号不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=100,  groups ={AddGroup.class, UpdateGroup.class}, message="商品型号长度不能超过100个字符")
    private String goodsModel;



    /**
	 * 商品规格;来源于base_goods.goods_space
	 */
    @NotBlank(message="商品规格不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=100,  groups ={AddGroup.class, UpdateGroup.class}, message="商品规格长度不能超过100个字符")
    private String goodsSpec;



    /**
	 * 基础数量
	 */
    @NotNull(message="基础数量不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal baseNum;



    /**
	 * 基础单位id;来源于base_uom.id
	 */
    @NotNull(message="基础单位id不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private Long baseUomId;



    /**
	 * 基础单位;来源于base_uom.name_name
	 */
    @NotBlank(message="基础单位不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="基础单位长度不能超过40个字符")
    private String baseUomName;



    /**
	 * 库存数量
	 */
    @NotNull(message="库存数量不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal qtyNum;



    /**
	 * 计量单位id;来源于base_uom.id
	 */
    @NotNull(message="计量单位id不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private Long qtyUomId;



    /**
	 * 计量单位;来源于base_uom.name_name
	 */
    @NotBlank(message="计量单位不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="计量单位长度不能超过40个字符")
    private String qtyUomName;



    /**
	 * 辅助数量
	 */
    @NotNull(message="辅助数量不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal auxNum;



    /**
	 * 计量单位id;来源于base_uom.id
	 */
    @NotNull(message="计量单位id不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private Long auxUomId;



    /**
	 * 计量单位;来源于base_uom.name_name
	 */
    @NotBlank(message="计量单位不能为空",  groups ={AddGroup.class, UpdateGroup.class})
    @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="计量单位长度不能超过40个字符")
    private String auxUomName;



    /**
	 * 商品单价
	 */
    @NotNull(message="商品单价不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal goodsPrice;



    /**
	 * 商品挂牌价
	 */
    @NotNull(message="商品挂牌价不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal goodsListPrice;



    /**
	 * 商品金额
	 */
    @NotNull(message="商品金额不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal goodsAmount;



    /**
	 * 商品折扣
	 */
    @NotNull(message="商品折扣不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal goodsDiscount;



    /**
	 * 件换算
	 */
    private BigDecimal converUnit1;



    /**
	 * 片换算
	 */
    private BigDecimal converUnit2;

    /**
     * 包装码
     */
    private String cfpackCode;
    /**
     * 缺陷
     */
    private  String fault;
    /**
     * 生产调度号schedule_no
     */
    private  String scheduleNo;
    /**
     * 批次flot
     */
    private  String flot;
    /**
     * 尺寸item_size
     */
    private  String itemSize;
    /**
     * 外包装码名称boxing_name
     */
    private  String boxingName;



}
